package designPattern.creation.builderpattern.demo;

import java.util.StringJoiner;

/**
 * @author 张琪
 * @date 2023/1/29 16:17
 */
public class Meal {
    private String food;
    private String drink;

    public String getFood() {
        return food;
    }

    public void setFood(String food) {
        this.food = food;
    }

    public String getDrink() {
        return drink;
    }

    public void setDrink(String drink) {
        this.drink = drink;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Meal.class.getSimpleName() + "[", "]")
                .add("food='" + food + "'")
                .add("drink='" + drink + "'")
                .toString();
    }
}
